package com.example.gss.entity;


import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 学业成绩记录表实体类，对应数据库中的coursescore表
 */
@Data
public class CourseScore implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private String scoreId;
    private String studentId;
    private String courseId;
    private String courseName;
    private BigDecimal score;
    private Boolean isDegreeCourse;

    public CourseScore() {
    }

    public CourseScore(String scoreId, String studentId, String courseId, String courseName,
                       BigDecimal score, Boolean isDegreeCourse) {
        this.scoreId = scoreId;
        this.studentId = studentId;
        this.courseId = courseId;
        this.courseName = courseName;
        this.score = score;
        this.isDegreeCourse = isDegreeCourse;
    }

    @Override
    public String toString() {
        return "CourseScore{" +
                "scoreId='" + scoreId + '\'' +
                ", studentId='" + studentId + '\'' +
                ", courseId='" + courseId + '\'' +
                ", courseName='" + courseName + '\'' +
                ", score=" + score +
                ", isDegreeCourse=" + isDegreeCourse +
                '}';
    }
}